/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package deatax.game;

import java.util.Comparator;

/**
 *
 * @author pson
 */
public class GameUtil {

    public final static int ATTACK_SINGLE = 1;
    public final static int ATTACK_RADIUS = 2;
    public final static int ATTACK_LINE = 3;
    public final static int ATTACK_CONE = 4;
    public final static int TARGET_TYPE_TERRAIN = 1;
    public final static int TARGET_TYPE_UNIT = 2;
    public final static int TARGET_TYPE_STRUCTURE = 4;
    public final static int TARGET_SELF = 1;
    public final static int TARGET_ENEMY = 2;
    public final static int TARGET_ALLY = 4;
    private static Comparator<GameObject> SORTER = null;

    public static Comparator<GameObject> sorter() {
        if (SORTER == null) {
            SORTER = new GameObjectSorter();
        }
        return SORTER;
    }
}
